<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('problem/index')}">常见问题</a></li>
        <li><a href="{:url('problem/add')}">添加问题</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="problem"
          method="#">
    </form>
    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th>ID</th>
            <th>问题</th>
            <th>答案</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.answer}</td>
                <td>{$vo.addtime}</td>
                <td>
                    <a class="btn btn-xs btn-primary" href="{:url('problem/edit',array('id'=>$vo['id']))}">编辑</a>
                    <a class="btn btn-xs btn-danger" href="{:url('problem/delete',array('id'=>$vo['id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page|default=''}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>